package main

import (
	"gojob/jobs"
	"gojob/models"
	_ "gojob/routers"
	"time"

	"github.com/astaxie/beego"
)

const (
	VERSION = "2.2.0"
)

func init() {
	//初始化数据模型
	var StartTime = time.Now().Unix()
	models.Init(StartTime)
	jobs.InitJobs()
}

func main() {
	beego.BConfig.WebConfig.Session.SessionOn = true
	beego.Run()
}
